package xyz.zq.dockerdemo.controller;

import cn.hutool.core.net.NetUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author hzq
 * @date 2021/10/26 14:18
 */
@RestController
public class DockerDemoController {

    @GetMapping("/helloDocker")
    public String helloDocker() {
        return "Hello Docker";
    }

    @GetMapping("/serverIp")
    public String serverIp() {
        String localhostStr = NetUtil.getLocalhostStr();
        return localhostStr;
    }
}
